var express = require('express');
var router = express.Router();

//引入业务层
const studentService = require('../src/services/student/studentServices')

/* GET users listing. */
router.get('/showall', async function(req, resp, next) {
     //可以获得jwt中的负载（payload）
       let info=  req.user
       console.log("****===",info);

     let data = await studentService.showAllStudentsInfo();

     resp.json({"status":0,"msg":"查询成功","datas":data});

});

module.exports = router;
